using TMPro;
using UnityEngine;
using UnityEngine.UI;

public class DuelModeProgressUI : MonoBehaviour
{
	public Image PlayerProgress;

	public TextMeshProUGUI PlayerPercentage;

	public Image OpponentProgress;

	public TextMeshProUGUI OpponentPercentage;

	public void UpdateProgress(int player, int opponent, int total)
	{
		PlayerProgress.fillAmount = (float)player / (float)total;
		OpponentProgress.fillAmount = (float)opponent / (float)total;
		PlayerPercentage.text = Mathf.CeilToInt((float)player / (float)total) + "%";
		OpponentPercentage.text = Mathf.CeilToInt((float)opponent / (float)total) + "%";
	}
}
